package com.xiaojiezhu.netty.base.protocol;

import io.netty.channel.ChannelInitializer;
import io.netty.channel.socket.SocketChannel;

/**
 * 作者 zxj<br>
 * 时间 2017/7/14 17:06
 * 说明 ...
 */
public class DefaultClientChannelHandler extends ChannelInitializer<SocketChannel> {
    protected void initChannel(SocketChannel ch) throws Exception {
        ch.pipeline().addLast(new CobraEncoder());
        ch.pipeline().addLast(new CobraDecoder());

        ch.pipeline().addLast(new ClientHandler());
    }
}
